/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.scene.domain;

import com.koron.common.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;
import java.util.List;

@ApiModel(value = "JSA模板", description = "JSA模板实体类")
public class JSATemplate extends BaseEntity {

    public JSATemplate() {
        super();
    }

    public JSATemplate(String userCode, String userName) {
        super.setAddUser(userCode);
        super.setAddUserName(userName);
        super.setAddTime(new Date());
        super.setUpdateUser(userCode);
        super.setUpdateUserName(userName);
        super.setUpdateTime(super.getAddTime());
    }

    @ApiModelProperty(value = "模板名称", name = "name", required = true)
    private String name;

    @ApiModelProperty(value = "模板编码", name = "code", required = true)
    private String code;

    @ApiModelProperty(value = "作业类型Id", name = "jsaTypeId", required = true)
    private String jsaTypeId;

    @ApiModelProperty(value = "作业类型名称", name = "jsaTypeName", required = true)
    private String jsaTypeName;

    private List<JSATemplateStep> steps;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getJsaTypeId() {
        return jsaTypeId;
    }

    public void setJsaTypeId(String jsaTypeId) {
        this.jsaTypeId = jsaTypeId;
    }

    public String getJsaTypeName() {
        return jsaTypeName;
    }

    public void setJsaTypeName(String jsaTypeName) {
        this.jsaTypeName = jsaTypeName;
    }

    public List<JSATemplateStep> getSteps() {
        return steps;
    }

    public void setSteps(List<JSATemplateStep> steps) {
        this.steps = steps;
    }

    @Override
    public String toString() {
        return "JSATemplate{" +
                "name='" + name + '\'' +
                ", code='" + code + '\'' +
                ", jsaTypeId='" + jsaTypeId + '\'' +
                '}';
    }

}
